﻿<%@ page language="java" pageEncoding="UTF-8"  contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	session.removeAttribute("user");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<link type="text/css" rel="stylesheet" href="<%=path %>/css/all.css" />
		<script type="text/javascript" src="<%=path%>/js/jquery-1.8.0.js"></script>
		<title>物业管理系统</title>
	</head>
	<body class="login">
		<div class="login_wrap">
			<div class="form">
				<form id="frmLogin" action="login.action" method="post">
					<h1>
						物业管理系统
					</h1>
					<ul class="information">
						<li>
							<label>
								用户名:
							</label>
							<input type="text" class="text"  id="loginName" name="loginName" value="${user.name}"/>
						</li>
						<li>
							<label>
								密&nbsp;&nbsp;码:
							</label>
							<input type="password" class="text"  id="pwd" name="pwd" onkeydown='submitForm(this.form,event)'/>
						</li>
					</ul>
					<ul class="note2 clearfix">
						<li>
						</li>
						<li>
						</li>
					</ul>
					<a href="#" class="submit" onclick="doSubmit();" >登&nbsp;录
					</a>
				</form>
			</div>
		</div>
		<script type="text/javascript">
		function doSubmit(){
			  $("#frmLogin").submit();
		}
	    function submitForm(frm,event){ 
	      var event=window.event?window.event:event; if(event.keyCode==13){ 
	    	  doSubmit(); 
	      } 
	    } 
	</script> 
		</script>
	<body>
	
</html>